package com.kfm.springboot.controller;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@ConfigurationProperties(prefix = "person")
public class HelloController {

    private String name;
    private Integer age;
    private String address;


    @RequestMapping("/hello")
    public String hello() {
        return "Hello Spring Boot! 22222" + name + " " + age + " " + address;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setAddress(String address) {
        this.address = address;
    }

}
